/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.service;

import east2west.dao.HotelDAO;
import east2west.dto.HotelDTO;
import java.util.ArrayList;

/**
 *
 * @author thanhluan
 */
public class HotelService {

    HotelDAO daoHotel = new HotelDAO();

    public ArrayList<HotelDTO> readByTopHotel() {
        return daoHotel.readByTopHotesls();
    }

    public HotelDTO findByHotelId(int id) {
        return daoHotel.findById(id);
    }
    public ArrayList<HotelDTO> findByIdOrther(int id){
        return daoHotel.findByAllOrther(id);
    }
    public ArrayList<HotelDTO> readByAll(){
        return daoHotel.readByAll();
    }
    public ArrayList<HotelDTO> getCity(){
        return daoHotel.getHotelCity();
    }
    public ArrayList<HotelDTO> findDTO(HotelDTO dto){
        return daoHotel.findInfo(dto);
    }
}
